<%@page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>
<!-- For Mantis Issue 6099 -->
<jsp:useBean scope='session' id='userBean' class='org.akaza.openclinica.bean.login.UserAccountBean'/>
    <c:if test="${userBean.name!=''}">
    <c:redirect url="/MainMenu"/>
    </c:if>
<!-- End of 6099-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>登录</title>
    <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
 	<meta http-equiv="X-UA-Compatible" content="IE=8" />
 	<link rel="stylesheet" href="<c:url value='/includes/styles.css'/>" type="text/css"/>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        a{
            text-decoration: none;
        }
        input{
            outline:none;
            border:none;
        }
        body{
            background: url(../../images/bg.jpg) no-repeat center top;
            font-family: '微软雅黑';
        }
        .login_content{
            width: 622px;
            margin:200px auto 0;
        }
        .tle{
            color: #282828;
            margin-bottom:55px;
            font-weight:normal;
            text-align: center;
        }
        .tle .zh_tle{
            font-size:42px;
            display: block;
            margin-bottom:8px;
        }
        .tle .en_tle{
            font-size:20px;
            display: block;
        }

        .inputSec{
            width: 410px;
            margin:0 auto;
            background: #fff;
            border:1px solid #cfcfcf;
            font-size:18px;
            color: #999;
            border-radius: 5px;
        }
        .inputSec div{
            padding:20px 22px;
        }
        .inputSec label{
            display: inline-block;
            width: 16%;
        }
        .inputSec input{
            width: 52%;
            padding: 4px 10px;
            font-size: 18px;
        }
        .inputSec .forgetkey{
            color: #2EC6C9;
            font-size:16px;
            margin-left:6px;
            display: inline-block;
        }
        .border_b{
            border-bottom:1px solid #cfcfcf;
        }

        .loginbtn{
            width: 410px;
            line-height:60px;
            margin:30px auto 0;
            border-radius: 5px;
            background: #2EC6C9;
            color: #fff;
            text-align: center;
            cursor: default;
        }
        .note{
            height: 80px;
		    margin: 0 auto;
		    margin-bottom: 15px;
		    margin-top: 30px;
		    text-align: left;
		}
        .alertbox_center {
		    padding-left: 110px;
		    padding-right: 100px;
		    color: #E46E16;
		}
        .version{
            color: #fff;
            font-size:14px;
            text-align: center;
            padding-bottom:20px;
            width: 822px;
            margin-left: -100px;
        }
        .version a{
        	color: #fff;
        }
        h2 {
        	line-height: 40px;
        	font-family: '微软雅黑';
        }

    </style>
    <script type="text/JavaScript" language="JavaScript" src="<c:url value='/includes/jmesa/jquery.min.js'/>"></script>
    <script type="text/JavaScript" language="JavaScript" src="<c:url value='/includes/jmesa/jquery-migrate-1.1.1.js'/>"></script>
	<script type="text/javascript" language="JavaScript" src="<c:url value='/includes/jmesa/jquery.blockUI.js'/>"></script>
</head>
<fmt:setBundle basename="org.akaza.openclinica.i18n.notes" var="restext"/>
<fmt:setBundle basename="org.akaza.openclinica.i18n.workflow" var="resworkflow"/>
<fmt:setBundle basename="org.akaza.openclinica.i18n.words" var="resword"/>
<fmt:setBundle basename="org.akaza.openclinica.i18n.format" var="resformat"/>
<fmt:setBundle basename="org.akaza.openclinica.i18n.licensing" var="licensing"/>

<%--<c:choose>--%>
    <%--<c:when test="${resword.locale == null}"><fmt:setLocale value="en" scope="session"/></c:when>--%>
    <%--<c:otherwise><fmt:setLocale value="${resword.locale}" scope="session"/></c:otherwise>--%>
<%--</c:choose>--%>
<body>
<div class="login_content">
    <h2 class="tle">
        <span class="zh_tle">科尼克临床数据信息采集系统</span>
        <span class="en_tle">Electronic Data Capture System of Drkenical</span>
    </h2>
    <form action="<c:url value='/j_spring_security_check'/>" method="post" id="loginForm">
    <div class="inputSec">
        <div class="border_b">
            <label for="username">用户名</label>
            <input type="text" id="username" name="j_username">
        </div>
        <div class="">
            <label for="j_password">密码</label>
            <input type="password" id="j_password" name="j_password" autocomplete="off">
            <a href="#" class="forgetkey" id="requestPassword">忘记密码？</a>
        </div>
    </div>
    <div class="loginbtn" onclick="loginForm.submit();">登录</div>
    </form>
    <div class="note"><jsp:include page="../login-include/login-alertbox.jsp"/></div>
    <div class="version">Livzon Pharmaceutical Group Co.,Ltd. 版本 : 1.0 &nbsp;<fmt:message key="footer.license.2" bundle="${licensing}"/></div>
</div>
<script type="text/javascript">
        document.getElementById('username').setAttribute( 'autocomplete', 'off' );
        document.getElementById('j_password').setAttribute( 'autocomplete', 'off' );

        jQuery(document).ready(function() {
            jQuery('#requestPassword').click(function() {
                jQuery.blockUI({ message: jQuery('#requestPasswordForm'), css:{left: "200px", top:"180px" } });
            });

            jQuery('#cancel').click(function() {
                jQuery.unblockUI();
                return false;
            });
        });

    </script>

<div id="requestPasswordForm" style="display:none;">
      <c:import url="requestPasswordPop.jsp">
      </c:import>
</div>
</body>
</html>